Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix serialization of Fluent::EventTime objects #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jlacoline
Copy link

Fixes an issue with msgpack not being able to serialize Fluent::EventTime objects.

Without this fix, any timestamp with subsecond precision will loose information after being bufferized, since msgpack will serialize them as integers.

The workaround uses the MessagePackFactory class defined in fluentd: https://github.com/fluent/fluentd/blob/master/lib/fluent/msgpack_factory.rb

Fixes #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keep original timestmap
1 participant